Skip to main content

All Questions

3votes
1answer
265views

PHP MIMEType class

There isn't a very reliable way (in my opinion) to get the mime type of a specific extension, regardless of the file actually being of that type or not. This type of thing usually is used when ...
Ismael Miguel's user avatar
3votes
2answers
3kviews

Validating basic data objects

I'm playing around with trying to do things in a better way, and in a class I have for sending emails, I have the concept of a recipient. This gets passed into my other classes essentially as a struct ...
Rich Bradshaw's user avatar
2votes
0answers
77views

Application Class Security

Is my Application.php class secure for continuing development? The Application.php acts as a registry for the whole application. I tried not to rewrite already working code that is being pulled from ...
Traven's user avatar
1vote
1answer
1kviews

Review of my PHP Wrapper around Third Party Soap API

I have written a wrapper for Soap based 3rd party web service. https://gist.github.com/veganista/bd940750d9e240e63b89 I'm pretty happy with it so far (I think, anyway). It's only a small sub-set of ...
veganista's user avatar
4votes
1answer
3kviews

Cookie Management Class

I wrote this class to make cookie management easier. I know it makes use of serialize(), but I have no intention of storing very much data in the cookie, and it ...
M Miller's user avatar
4votes
1answer
11kviews

PHP Config Class

I'm working on a config class for PHP, where I can easily bring in config options. Any improvements/suggestions are appreciated. Example usage: ...
user avatar
4votes
1answer
576views

How to convert my classes to Dependency injection?

I am still learning to develop my skills in OOP. It uses a combination of the factory and its real singletons? As I did more research, I have realized this design pattern is bad because of global ...
I'll-Be-Back's user avatar

close